/* src/components/Sidebar.css */
.sidebar {
    position: fixed;
    right: 0;
    top: 80px; /* 调整到顶部更近的位置 */
    width: 70px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 27, 77, 0.85); /* 深一点的背景色 */
    padding: 15px 10px;
    border-radius: 12px 0 0 12px;
    box-shadow:
            -3px 0 15px rgba(0, 0, 0, 0.2),
            inset 1px 0 0 rgba(255, 255, 255, 0.1);
    z-index: 100;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 161, 214, 0.15);
    border-right: none;
}

.sidebar-item {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2a5a 0%, #1a3f7a 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
    box-shadow:
            0 2px 10px rgba(0, 161, 214, 0.2),
            inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.sidebar-item:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, #1a3f7a 0%, #306ac5 100%);
    box-shadow:
            0 5px 15px rgba(0, 161, 214, 0.4),
            inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.sidebar-icon {
    font-size: 22px;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sidebar-name {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 添加激活状态 */
.sidebar-item.active {
    background: linear-gradient(135deg, #0057b7 0%, #007bff 100%);
    box-shadow:
            0 0 15px rgba(0, 119, 255, 0.5),
            inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* 为小屏幕设备调整侧边栏样式 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 12px 8px;
    }

    .sidebar-item {
        width: 45px;
        height: 45px;
    }

    .sidebar-icon {
        font-size: 18px;
    }

    .sidebar-name {
        font-size: 9px;
    }
}